package com.zd.common.common.enums;

public enum BmsUserTypeEnum {
	Automatic_Ticket(0, "自动售票机"),
	Scenic_area_administrator(1, "景区管理员"),
	Platform_user(2, "平台用户"),
	Scenic_spot_conductor(3, "景区售票员");
	
	
	private int key;
	private String value;

	private BmsUserTypeEnum(int key, String value) {
		this.key = key;
		this.value = value;
	}

	public int getKey() {
		return key;
	}


	public void setKey(int key) {
		this.key = key;
	}


	public String getValue() {
		return value;
	}


	public void setValue(String value) {
		this.value = value;
	}


	public static BmsUserTypeEnum get(int key) {
		for (BmsUserTypeEnum bmsUserType : BmsUserTypeEnum.values()) {
			if (bmsUserType.getKey() == key) {
				return bmsUserType;
			}
		}
		return null;
	}
}
